"""
分析和检测模块 - 统一接口导出

主要组件:
- SymbolExtractor: 统一符号提取器 (推荐使用)
- ProjectAnalyzer: 统一项目分析器 (推荐使用)
- PlatformDetector: 平台检测器
- DependencyAnalyzer: 依赖分析器
"""

__all__ = [
    'SymbolExtractor',
    'ProjectAnalyzer',
    'PlatformDetector',
    'DependencyAnalyzer',
]


def __getattr__(name):
    if name == 'SymbolExtractor':
        from core.extractors_module.symbol_extractor import SymbolExtractor
        return SymbolExtractor

    if name == 'ProjectAnalyzer':
        from core.analysis_module.project_analyzer import ProjectAnalyzer
        return ProjectAnalyzer

    if name == 'PlatformDetector':
        from core.analysis_module.platform_detector import PlatformDetector
        return PlatformDetector

    if name == 'DependencyAnalyzer':
        from core.analysis_module.dependency_analyzer import DependencyAnalyzer
        return DependencyAnalyzer

    raise AttributeError(name)


def __dir__():
    return sorted(set(__all__))
